package com.itheima.zhaohang.livepalyonline;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button mButtonone;
    private Button mButtontwo;
    private Button mButtonthree;
    private Button mButtonfour;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mButtonone= (Button) findViewById(R.id.buttonone);
        mButtontwo=  (Button) findViewById(R.id.buttontwo);
        mButtonthree= (Button) findViewById(R.id.buttonthree);
        mButtonfour= (Button) findViewById(R.id.buttonfour);
        mButtonfour.setOnClickListener(this);
        mButtontwo.setOnClickListener(this);
        mButtonthree.setOnClickListener(this);
        mButtonone.setOnClickListener(this);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.buttonone:
                //暂无
                Toast.makeText(MainActivity.this, "暂无服务器，无法正常实现", Toast.LENGTH_LONG).show();
                break;
            case R.id.buttontwo:

                startActivity(new Intent(MainActivity.this, VidoPlayActivity.class));
                break;
            case R.id.buttonthree:
                startActivity(new Intent(MainActivity.this, AskAserAvticity.class));
                break;
            case R.id.buttonfour:
                break;
        }
    }
}
